package cn.liuhuan1.webModelBean.api;

import cn.liuhuan1.entity.PageResult;
import cn.liuhuan1.entity.ReturnResult;
import cn.liuhuan1.webModelBean.bo.ArticleBo;
import cn.liuhuan1.webModelBean.vo.ArticleVo;

import java.util.List;

public interface ArticleImp {

    public List<ArticleVo> getArticle();

    PageResult<ArticleVo> getPageArticle(ArticleBo articleBo);

    ArticleVo getArticleById(String id);

    void saveArticle(ArticleBo articleBo);

    void updateArticle(ArticleBo articleBo);

    void delArticle(String id);

    /**
     * 修改文章状态
     * @param status
     */
    void updateStatus(String status,String id);

    public List<ArticleVo> getInId(List<String> idList);

    public ReturnResult updateViewSumber(String id);

    public ReturnResult updateReplyNumber(String id);

    public ReturnResult updatePraiseSumber(String id);

}
